<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SkyGameEngine2d: Font类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="shpe.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SkyGameEngine2d
   &#160;<span id="projectnumber">0.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-static-attribs">静态 Public 属性</a> &#124;
<a href="#friends">友元</a> &#124;
<a href="class_font-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">Font类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a8511f6151cd74911d17731893624dff0"><td class="memItemLeft" align="right" valign="top"><a id="a8511f6151cd74911d17731893624dff0"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>FONT_WEIGHT</b> { <b>FONT_WEIGHT_LIGHT</b> = 300, 
<b>FONT_WEIGHT_NORMAL</b> = 400, 
<b>FONT_WEIGHT_MEDIUM</b> = 500, 
<b>FONT_WEIGHT_BOLD</b> = 700
 }</td></tr>
<tr class="separator:a8511f6151cd74911d17731893624dff0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab7d1abdcd7648f2d1c226fb8faac548a"><td class="memItemLeft" align="right" valign="top"><a id="ab7d1abdcd7648f2d1c226fb8faac548a"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>FONT_STYLE</b> : int { <b>NORMAL</b> = DWRITE_FONT_STYLE_NORMAL, 
<b>OBLIQUE</b> = DWRITE_FONT_STYLE_OBLIQUE, 
<b>ITALIC</b> = DWRITE_FONT_STYLE_ITALIC
 }</td></tr>
<tr class="separator:ab7d1abdcd7648f2d1c226fb8faac548a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acba869b67a5e2c5ddb5f26ae5daef267"><td class="memItemLeft" align="right" valign="top"><a id="acba869b67a5e2c5ddb5f26ae5daef267"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>FONT_STRETCH</b> : int { <br />
&#160;&#160;<b>ULTRA_CONDENSED</b> = DWRITE_FONT_STRETCH_ULTRA_CONDENSED, 
<b>EXTRA_CONDENSED</b> = DWRITE_FONT_STRETCH_EXTRA_CONDENSED, 
<b>CONDENSED</b> = DWRITE_FONT_STRETCH_CONDENSED, 
<b>SEMI_CONDENSED</b> = DWRITE_FONT_STRETCH_SEMI_CONDENSED, 
<br />
&#160;&#160;<b>NORMAL</b> = DWRITE_FONT_STRETCH_NORMAL, 
<b>MEDIUM</b> = DWRITE_FONT_STRETCH_MEDIUM, 
<b>SEMI_EXPANDED</b> = DWRITE_FONT_STRETCH_SEMI_EXPANDED, 
<b>EXPANDED</b> = DWRITE_FONT_STRETCH_EXPANDED, 
<br />
&#160;&#160;<b>EXTRA_EXPANDED</b> = DWRITE_FONT_STRETCH_EXTRA_EXPANDED, 
<b>ULTRA_EXPANDED</b> = DWRITE_FONT_STRETCH_ULTRA_EXPANDED
<br />
 }</td></tr>
<tr class="separator:acba869b67a5e2c5ddb5f26ae5daef267"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a88234410509e3dcb5ec707a2fa9376c9"><td class="memItemLeft" align="right" valign="top"><a id="a88234410509e3dcb5ec707a2fa9376c9"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Font</b> (const std::wstring &amp;family, int size=Font::defultFontSize, Font::FONT_WEIGHT weight=Font::FONT_WEIGHT_NORMAL, bool italic=false)</td></tr>
<tr class="separator:a88234410509e3dcb5ec707a2fa9376c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8bd86bd8d63d4e86abe5d412d3db8e65"><td class="memItemLeft" align="right" valign="top"><a id="a8bd86bd8d63d4e86abe5d412d3db8e65"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Font</b> (const <a class="el" href="class_font.html">Font</a> &amp;font)</td></tr>
<tr class="separator:a8bd86bd8d63d4e86abe5d412d3db8e65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abb3bb661d6f432bdafc5b3efcd1ac586"><td class="memItemLeft" align="right" valign="top"><a id="abb3bb661d6f432bdafc5b3efcd1ac586"></a>
FONT_STYLE&#160;</td><td class="memItemRight" valign="bottom"><b>getFontStyle</b> () const</td></tr>
<tr class="separator:abb3bb661d6f432bdafc5b3efcd1ac586"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1400d5897abbc8142ec35497dcd2dc41"><td class="memItemLeft" align="right" valign="top"><a id="a1400d5897abbc8142ec35497dcd2dc41"></a>
FONT_STRETCH&#160;</td><td class="memItemRight" valign="bottom"><b>getFontStretch</b> () const</td></tr>
<tr class="separator:a1400d5897abbc8142ec35497dcd2dc41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50ddbe0106c797a63ac7d88f4b14ad87"><td class="memItemLeft" align="right" valign="top"><a id="a50ddbe0106c797a63ac7d88f4b14ad87"></a>
const std::wstring &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getFontFamily</b> () const</td></tr>
<tr class="separator:a50ddbe0106c797a63ac7d88f4b14ad87"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c218c72d2d9f86c9535781c83be5757"><td class="memItemLeft" align="right" valign="top"><a id="a1c218c72d2d9f86c9535781c83be5757"></a>
const std::wstring &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getLocaleName</b> () const</td></tr>
<tr class="separator:a1c218c72d2d9f86c9535781c83be5757"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad0b618ae42331705dc8ffb348c534417"><td class="memItemLeft" align="right" valign="top"><a id="ad0b618ae42331705dc8ffb348c534417"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>getFontSize</b> () const</td></tr>
<tr class="separator:ad0b618ae42331705dc8ffb348c534417"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9afa79f3ec34d67a06b69f51b624f809"><td class="memItemLeft" align="right" valign="top"><a id="a9afa79f3ec34d67a06b69f51b624f809"></a>
const <a class="el" href="class_size.html">Size</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getFontPixelSize</b> () const</td></tr>
<tr class="separator:a9afa79f3ec34d67a06b69f51b624f809"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12e9fc1ae1685ed572adcc5cc8c06a80"><td class="memItemLeft" align="right" valign="top"><a id="a12e9fc1ae1685ed572adcc5cc8c06a80"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>getFontWeight</b> () const</td></tr>
<tr class="separator:a12e9fc1ae1685ed572adcc5cc8c06a80"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3475c7133f7b15e655fda9ddf548c1ef"><td class="memItemLeft" align="right" valign="top"><a id="a3475c7133f7b15e655fda9ddf548c1ef"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setWordWrapping</b> (bool wordWrapping=true)</td></tr>
<tr class="separator:a3475c7133f7b15e655fda9ddf548c1ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae24c92a65231100ce27564c1b60d40b3"><td class="memItemLeft" align="right" valign="top"><a id="ae24c92a65231100ce27564c1b60d40b3"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isWordWrapping</b> () const</td></tr>
<tr class="separator:ae24c92a65231100ce27564c1b60d40b3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac28891a483838683f446eb63987e3119"><td class="memItemLeft" align="right" valign="top"><a id="ac28891a483838683f446eb63987e3119"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setAlignment</b> (int flag)</td></tr>
<tr class="separator:ac28891a483838683f446eb63987e3119"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4763655ffa869251a17743ac1c1923a3"><td class="memItemLeft" align="right" valign="top"><a id="a4763655ffa869251a17743ac1c1923a3"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="class_font.html">Font</a> &amp;font) const</td></tr>
<tr class="separator:a4763655ffa869251a17743ac1c1923a3"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-attribs"></a>
静态 Public 属性</h2></td></tr>
<tr class="memitem:a993e26f21416359739cea84b29c987ad"><td class="memItemLeft" align="right" valign="top"><a id="a993e26f21416359739cea84b29c987ad"></a>
static const std::wstring&#160;</td><td class="memItemRight" valign="bottom"><b>defultFontFamily</b></td></tr>
<tr class="separator:a993e26f21416359739cea84b29c987ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5015506c74880e23c05c2f3a5380f3a9"><td class="memItemLeft" align="right" valign="top"><a id="a5015506c74880e23c05c2f3a5380f3a9"></a>
static const std::wstring&#160;</td><td class="memItemRight" valign="bottom"><b>defultFontLocalName</b></td></tr>
<tr class="separator:a5015506c74880e23c05c2f3a5380f3a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa5d1cdb96ff2b54acdc75a9ae5077a1c"><td class="memItemLeft" align="right" valign="top"><a id="aa5d1cdb96ff2b54acdc75a9ae5077a1c"></a>
static const FONT_STYLE&#160;</td><td class="memItemRight" valign="bottom"><b>defultFontStyle</b></td></tr>
<tr class="separator:aa5d1cdb96ff2b54acdc75a9ae5077a1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac4a462119a382ea2bfd3a0a7b1ee4735"><td class="memItemLeft" align="right" valign="top"><a id="ac4a462119a382ea2bfd3a0a7b1ee4735"></a>
static const FONT_STRETCH&#160;</td><td class="memItemRight" valign="bottom"><b>defultFontStretch</b></td></tr>
<tr class="separator:ac4a462119a382ea2bfd3a0a7b1ee4735"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adcad415815a9100d00422aa8fc784c5f"><td class="memItemLeft" align="right" valign="top"><a id="adcad415815a9100d00422aa8fc784c5f"></a>
static const float&#160;</td><td class="memItemRight" valign="bottom"><b>defultFontSize</b></td></tr>
<tr class="separator:adcad415815a9100d00422aa8fc784c5f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69e76e85496de772b238faacda69312a"><td class="memItemLeft" align="right" valign="top"><a id="a69e76e85496de772b238faacda69312a"></a>
static const int&#160;</td><td class="memItemRight" valign="bottom"><b>defultFontWeight</b></td></tr>
<tr class="separator:a69e76e85496de772b238faacda69312a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5cb02ebc64b8a38159bc3962390754cc"><td class="memItemLeft" align="right" valign="top"><a id="a5cb02ebc64b8a38159bc3962390754cc"></a>
static Microsoft::WRL::ComPtr&lt; IDWriteFactory &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>s_dwFactory</b></td></tr>
<tr class="separator:a5cb02ebc64b8a38159bc3962390754cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
友元</h2></td></tr>
<tr class="memitem:aee0ad1dafe471596e6d25530d9fbaf0c"><td class="memItemLeft" align="right" valign="top"><a id="aee0ad1dafe471596e6d25530d9fbaf0c"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>Text</b></td></tr>
<tr class="separator:aee0ad1dafe471596e6d25530d9fbaf0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/code/SkyGameEngine2d/src/ui/<a class="el" href="_font_8h_source.html">Font.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.15
</small></address>
</body>
</html>
